package com.ruoyi.service.impl;

import com.ruoyi.mapper.HisMedicineFactoryMapper;
import com.ruoyi.service.IHisMedicineFactory;
import com.ruoyi.domain.MedicineFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author rk
 * @description: TODO
 * @date 2024/8/28 20:26
 */
@Service
public class HisMedicineFactoryImpl implements IHisMedicineFactory {
    @Autowired
    private HisMedicineFactoryMapper hisMedicineFactoryMapper;

    @Override
    public List<MedicineFactory> selectFactoryList(MedicineFactory medicineFactory) {
        return hisMedicineFactoryMapper.selectFactoryList(medicineFactory);
    }

    @Override
    public int updateFactory(MedicineFactory medicineFactory) {
        return hisMedicineFactoryMapper.updateFactory(medicineFactory);

    }

    @Override
    public int addFactory(MedicineFactory medicineFactory) {
        return hisMedicineFactoryMapper.addFactory(medicineFactory);
    }

    @Override
    public int deleteFactoryById(Long id) {
        return hisMedicineFactoryMapper.deleteFactoryById(id);
    }

    @Override
    public MedicineFactory selectFactoryById(Long id) {
        return hisMedicineFactoryMapper.selectFactoryById(id);
    }

    @Override
    public List<MedicineFactory> selectFactoryAll() {
        return hisMedicineFactoryMapper.selectFactoryAll();
    }
}
